<template>
	<view>
		<div class="top">
			<text :class="active1" @click="going">拍卖中</text>
			<text :class="active2" @click="finished">已结束</text>
		</div>
		<view class="bottom">
			<view v-if="show" class="no-data">
				<image src="../../static/other/none.png"></image>
			</view>
			<view v-else class="main">
				<view class="one">
					<view class="title">
						<image src="../../static/other/syn_top.png"></image>
						北京荣宝2020秋季艺术品拍卖会
					</view>
					<view class="desc">
						<text class="time">拍卖时间：2020年12月20日~12月20日</text>
						<text class="count">共<text>12</text>场</text>
					</view>
				</view>
				
				<view class="one">
					<view class="title">
						<image src="../../static/other/syn_top.png"></image>
						北京荣宝2020春季艺术品拍卖会
					</view>
					<view class="desc">
						<text class="time">拍卖时间：2020年8月23日~8月23日</text>
						<text class="count">共<text>7</text>场</text>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default{
		data() {
			return {
				show: true,
				active1: 'active',
				active2: ''
			}
		},
		methods:{
			going(){
				this.show = true
				this.active1 = 'active',
				this.active2 = ''
			},
			finished(){
				this.show = false
				this.active1 = '',
				this.active2 = 'active'
			}
		}
	}
</script>

<style>
	.top{
		margin: 30rpx auto;
		display: flex;
		justify-content:space-evenly;
		font-weight: bold;
	}
	
	.top text.active{
		border-bottom:7rpx solid #bd0505;
		padding-bottom:10rpx;
	}
	
	.no-data{
		text-align: center;
		margin-top: 380rpx;
	}
	
	.bottom image{
		width:374rpx;
		height:320rpx;
		margin:0 auto;
	}
	
	.bottom .main .one{
		width: 686rpx;
		height: 139rpx;
		margin: 0 32rpx;
		margin-top:30rpx;
		background-color: #ffffff;
		box-shadow: 0rpx 0rpx 29rpx 3rpx rgba(17, 17, 17, 0.06);
		padding:15rpx 25rpx;
		position: relative;
	}

	.bottom .main .one .title{
		width: 380rpx;
		height: 25rpx;
		font-size: 26rpx;
		line-height: 80rpx;
		font-weight: bold;
		color: #333;
	}
	
	.bottom .main .one image{
		position: absolute;
		top:0;
		right:0;
		width: 110rpx;
		height: 40rpx;
	}
	
	.bottom .main .one .desc{
		display: flex;	
		line-height: 60rpx;
		margin-top: 40rpx;
		justify-content: space-between;
	}
	
	.bottom .main .one .desc .time{
		font-size: 18rpx;
		
	}
	
	.bottom .main .one .desc .count text{
		color: #bd0505;
	}
</style>
